package org.example.common;

import com.google.protobuf.InvalidProtocolBufferException;

/**
 * 序列化反序列化接口
 * @param <T>
 */
public interface SerializationInterface<T> {

    byte[] toSerialization(T t);
    T reverseSerialization(byte[] input) throws Exception;
}
